package demo2;

public class B {
    public static void main(String[] args) {
        C c = new C();
        System.out.println(c.x);
        //protected 不能在不同包中的非子类直接访问
        //c.y = 100;
    }
}
